package cn.hxth.api.service;

import cn.hxth.api.model.Consumer;
import cn.hxth.api.query.PageResult;
import cn.hxth.api.query.ConsumerQueryObject;

/**购货单位服务层
 * @author xia
 */
public interface IConsumerService {
    public boolean insertConsumer(Consumer consumer);

    public boolean updateConsumer(Consumer consumer);

    public boolean removeConsumer(Integer cid) ;

    public  Consumer getConsumer(Integer cid) ;
    public PageResult findAll(ConsumerQueryObject ConsumerQueryObject) ;
    // 更新该购货单位总消费金额
    boolean updateTotal(Consumer consumer) ;
    public  Consumer getConsumerForMq(Integer cid) ;

}
